After the tab view hides or shows (including when the chat window first opens, if...
[adiumx.git] / Frameworks / AIUtilities Framework / Source / AITigerCompatibility.h
blobb0450b1fe1e318dc39ac06f89da04ec749d64a8a
1 /*
2 * AITigerCompatibility.h
3 * AIUtilities.framework
5 * Created by David Smith on 10/28/07.
6 * Copyright 2007 The Adium Team. All rights reserved.
8 */
9 #ifndef AITigerCompatibility
11 # define AITigerCompatibility
13 # import <AvailabilityMacros.h>
15 # ifndef MAC_OS_X_VERSION_10_5
16 # define MAC_OS_X_VERSION_10_5 1050
17 # endif //ndef MAC_OS_X_VERSION_10_5
19 #if MAC_OS_X_VERSION_10_5 > MAC_OS_X_VERSION_MAX_ALLOWED
20 # define NS_REQUIRES_NIL_TERMINATION
22 # if __LP64__ || NS_BUILD_32_LIKE_64
23 typedef long NSInteger;
24 typedef unsigned long NSUInteger;
25 # else
26 typedef int NSInteger;
27 typedef unsigned int NSUInteger;
28 # endif
30 # define NSIntegerMax LONG_MAX
31 # define NSIntegerMin LONG_MIN
32 # define NSUIntegerMax ULONG_MAX
34 # define NSINTEGER_DEFINED 1
36 # define NSDownloadsDirectory 15
38 typedef NSUInteger NSWindowCollectionBehavior;
39 # define NSWindowCollectionBehaviorDefault 0
40 # define NSWindowCollectionBehaviorCanJoinAllSpaces 1 << 0
42 # define NSCellHitContentArea 1 << 0
44 # ifdef __OBJC__
45 @interface NSWindow (NSWindowTigerMethods)
46 - (void)setCollectionBehavior:(NSWindowCollectionBehavior)behavior;
47 @end
49 @interface NSTextView (NSTextViewTigerMethods)
50 - (void)setGrammarCheckingEnabled:(BOOL)flag;
51 - (BOOL)isGrammarCheckingEnabled;
52 - (void)toggleGrammarChecking:(id)sender;
53 @end
55 @interface NSSplitView (NSScrollViewTigerMethods)
56 - (void)setPosition:(float)position ofDividerAtIndex:(NSInteger)dividerIndex;
57 @end
58 # endif
60 #else //Not compiling for 10.5
62 # if !defined(NS_REQUIRES_NIL_TERMINATION)
63 # define NS_REQUIRES_NIL_TERMINATION __attribute__((sentinel))
64 # endif
66 #endif //MAC_OS_X_VERSION_10_5
68 #endif //AITigerCompatibility